class AboutController < ApplicationController
  layout "library"

  def about
    @total_quotes = Quotation.count
  end

  def contact_us_send
    if request.post?
      email = ContactUsMailer.create_contact(params[:name], params[:email], params[:comments])
      email.set_content_type("text/html")
      ContactUsMailer.deliver(email)
      flash[:notice] = "Thank you for contacting us"
      redirect_to(:controller => "library", :action => "libraryhtml")
   end
  end
  
end
